// 用户管理

import { request } from '@/utils/service'
import { baseApiUrl } from '@/api/baseApiUrl'

// 用户列表
interface IgetUserListRequestData {
  pageIndex: number
  pageSize: number
}

export function getUserList(data: IgetUserListRequestData) {
  return request({
    url: baseApiUrl.USER_LIST,
    method: 'post',
    data
  })
}
// 编辑用户
export function editUser(data: any) {
  return request({
    url: baseApiUrl.EDIT_USER,
    method: 'post',
    data
  })
}

// 删除用户
interface IneleteUser {
  id: number
}
export function deleteUser(data: IneleteUser) {
  return request({
    url: baseApiUrl.DELETE_USER,
    method: 'post',
    data
  })
}
